package com.skyline.wo.service.impl;

import org.springframework.stereotype.Service;

import com.skyline.user.model.User;
import com.skyline.wo.service.InviteService;

@Service("inviteService")
public class InviteServiceImpl implements InviteService {

	@Override
	public void sendInvitation(String[] emails, User user, int totalInviteCount) {
//		String[] valideEmails=this.clean(emails, totalInviteCount);
		//for(String email:valideEmails){
			//System.out.println(email);
		//}
	}

//	private String[] clean(String[] emails, int valideEmailCount) {
//		if (emails.length == valideEmailCount) {
//			return emails;
//		} else {
//			//int valideEmailCount = 0;
//			String[] valideEmails = new String[valideEmailCount];
//			int current=0;
//			for (String email : emails) {
//				if (StringUtils.hasLength(email) && !email.equals("请输入您好友的E-mail")) {
//					valideEmails[current]=email;
//					current++;
//					if(current>=valideEmailCount){
//						break;
//					}
//				}
//			}
//			return valideEmails;
//		}
//	}

}
